import Request from '../dist/main.js'
import requestConfig from './config/request'
const request = new Request(requestConfig)
const { http } = request as any;

http.get('/api/movie/hot').then(res => {
  console.log(res)
});

http.get('/api/movie/hot', {name: 'hjm100'}).then(res => {
  console.log(res)
});

http.post('/api/movie/hot', {name: 'hjm100'}, {
  stringify: true // 是否启用对象变字符串[从接口参数中设置]
}).then(res => {
  console.log(res)
});

http.post('/api/movie/hot', {name: 'hjm100'}, {
  noErrAlert: true // 不弹出弹框
}).then(res => {
  console.log(res)
});

http.post('/api/movie/hot', {name: 'hjm100'}, {
  stringify: true, // 是否启用对象变字符串[从接口参数中设置]
  noErrAlert: true // 不弹出弹框
}).then(res => {
  console.log(res)
});